<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:form id="form" prependId="false" >
    <h:panelGrid>
    <h:outputText value="#{i18n.prefs_country}"/>
            <h:selectOneListbox id="person" value="#{person.lastName}" size="1">
              <f:selectItems value="#{facesSupport.personModels}"/>
              <f:ajax render="model"/>
            </h:selectOneListbox>
            <h:outputText value="#{i18n.prefs_region}"/>
            <h:selectOneListbox id="model" value="#{person.model}" style="width: 180px;" size="1">
              <f:selectItems value="#{person.modelOptions}"/>
            </h:selectOneListbox>
     </h:panelGrid>
     <h:commandButton id="savePersonButton" value="save" action="#{person.savePerson}"/>
</h:form></html>
